package StudyCode.summary.mycollection;

import java.util.Collection;
import java.util.function.Predicate;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CollectionContainsAnyPredicate {
	public static <T> boolean anyMatch(Collection<T> collection,
	                                   Predicate<T> predicate) {
		return collection.stream().anyMatch(predicate);
	}
}
